import httpInstance from "@/utils/http";

export function getAll() {
    return httpInstance({
        url: "/domain/getAll",
        method: "get",
    })
}

export function search(keyword) {
    return httpInstance({
        url: "/domain/search/" + keyword,
        method: "get",
    })
}

export function domainAddApi(domain) {
    return httpInstance({
        url: "/domain/add",
        method: "put",
        data: domain
    })
}